<script lang="ts" setup>
import {userInfoStore} from '@/store/webApp'
import {getCurrentOwnerInfo} from '@/api/JD'
const login = () => {
    userInfoStore().userLogin({
        username: 'admin',
        password: '123456',
        captcha: ''
    })
}
const jdAxios =async()=>{
   const res= getCurrentOwnerInfo()
   console.log('res',res);
}
</script>

<template>
    <ElButton type="primary" @click="login">登录测试</ElButton>
    <ElButton type="danger" @click="jdAxios">请求京东</ElButton>
</template>

<style lang="scss" scoped>
div{
    color: red;
    font-size: 30px;
}
</style>